package com.mycom.entity;

import java.sql.Date;

//实体类 : 将表的数据映射为 类 对象，表中的每个列转换为每个属性
public class Student {
    private Integer sid;
    private String stuno;
    private String stuname;
    private String stusex;
    private Integer stuage;
    private Date stubirth;
    private Integer stuscore;

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getStuno() {
        return stuno;
    }

    public void setStuno(String stuno) {
        this.stuno = stuno;
    }

    public String getStuname() {
        return stuname;
    }

    public void setStuname(String stuname) {
        this.stuname = stuname;
    }

    public String getStusex() {
        return stusex;
    }

    public void setStusex(String stusex) {
        this.stusex = stusex;
    }

    public Integer getStuage() {
        return stuage;
    }

    public void setStuage(Integer stuage) {
        this.stuage = stuage;
    }

    public Date getStubirth() {
        return stubirth;
    }

    public void setStubirth(Date stubirth) {
        this.stubirth = stubirth;
    }

    public Integer getStuscore() {
        return stuscore;
    }

    public void setStuscore(Integer stuscore) {
        this.stuscore = stuscore;
    }

    public Student() {
    }

    public Student(String stuno, String stuname, String stusex, Integer stuage, Date stubirth, Integer stuscore) {
        this.stuno = stuno;
        this.stuname = stuname;
        this.stusex = stusex;
        this.stuage = stuage;
        this.stubirth = stubirth;
        this.stuscore = stuscore;
    }

    public Student(Integer sid, String stuno, String stuname, String stusex, Integer stuage, Date stubirth, Integer stuscore) {
        this.sid = sid;
        this.stuno = stuno;
        this.stuname = stuname;
        this.stusex = stusex;
        this.stuage = stuage;
        this.stubirth = stubirth;
        this.stuscore = stuscore;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", stuno='" + stuno + '\'' +
                ", stuname='" + stuname + '\'' +
                ", stusex='" + stusex + '\'' +
                ", stuage=" + stuage +
                ", stubirth=" + stubirth +
                ", stuscore=" + stuscore +
                '}';
    }

    //lombok
}
